package com.xpgk.mvc.bsendMessage;

/**
 * 短消息发送情况
 * @author luojh
 *
 */
public class SmsStatus {
	private int code;//代码
	private String msg;//信息
	private int smsId;//短信id
	
	public SmsStatus(int code, String msg, int smsId) {
		this.code = code;
		this.msg = msg;
		this.smsId = smsId;
	}
	
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public int getSmsId() {
		return smsId;
	}
	public void setSmsId(int smsId) {
		this.smsId = smsId;
	}
	
	public boolean isSuccess(){
		return smsId != 0;
	}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("{code:").append(code).append(",")
		  .append("msg:").append(msg).append(",")
		  .append("smsId:").append(smsId).append("}");
		return sb.toString();
	}
}
